//
//  UIView+Additions.h
//  MLIPhone
//
//  Created by yakehuang on 5/10/14.
//
//

#import <UIKit/UIKit.h>

@interface UIView (XJXAdditions)

// 获得所属控制器
- (UIViewController*)viewController;
- (void)showLoading:(NSString *)word;
- (void)removeAllSubViews;
// Position of the top-left corner in superview's coordinates
@property CGPoint position;
@property CGFloat x;
@property CGFloat y;
@property CGFloat top;
@property CGFloat bottom;
@property CGFloat left;
@property CGFloat right;


// makes hiding more logical
@property BOOL    visible;


// Setting size keeps the position (top-left corner) constant
@property CGSize size;
@property CGFloat width;
@property CGFloat height;

@end
